package impl

import (
	"github.com/gin-gonic/gin"
	"github.com/starmotioncf/common/filter"
	"github.com/starmotioncf/soutchatinternal/repository"
	"github.com/starmotioncf/soutchatinternal/service"
)

type settingService struct {
	*service.Service
	userRepo repository.UserRepository
}

func NewSettingService(s *service.Service, userRepo repository.UserRepository) service.SettingService {
	return &settingService{
		Service:  s,
		userRepo: userRepo,
	}
}

func (s *settingService) GetFilterEntity(ctx *gin.Context) filter.Entity {
	return newEntityLazyByCtx(ctx, nil, s.userRepo)
}
